<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>
    <%
        // 设置请求缓冲区
        request.setCharacterEncoding("UTF-8");
        // 获取请求参数
        String uname = request.getParameter("uname");
        String pwd = request.getParameter("pwd");

        out.println(uname + " ：" + pwd);
    %>
</h1>
</body>
</html>
